import requests
import time

host = 'http://127.0.0.1/'

if __name__ == '__main__':
    session = requests.Session()

    # 登录
    res = session.post(f'{host}user/login/',
                       data={
                           'account': '0000000001', 'password': 'admin',
                           #    'account': '0000000002', 'password': '123456',
                       }
                       )
    print(res.json())
    print(time.time())
    res = session.get(f'{host}log/stat_ip/?country=中国&province=湖北&city=武汉')
    print(res.json())

    res = session.get(f'{host}log/stat_browser/')
    print(res.json())

print(time.time()-10000)